import request from '@/utils/request'

export function page (parameter) {
  return request({
    url: '/resume/page',
    method: 'post',
    data: parameter
  })
}

export function edit (parameter) {
  return request({
    url: '/resume',
    method: 'put',
    data: parameter
  })
}

export function deleteAll (ids) {
  return request({
    url: '/resume',
    method: 'delete',
    data: ids
  })
}

export function findResumes (account_id) {
  return request({
    url: '/resume/list/' + account_id,
    method: 'get',
  })
}

export function  saveResume(data) {
	const header = { contentType: false, processData: false, headers: { 'Content-Type': 'application/x-www-form-urlencoded' }}
  return request({
    url: '/resume',
    method: 'post',
	headers: header,
	data:data
  })
}